#!/usr/bin/env python
# encoding: utf-8
"""
GameInputView.py

Created by Steve Streza on 2008-09-22.
Copyright (c) 2008 __MyCompanyName__. All rights reserved.

$Id: GameInputView.py 339 2008-10-17 03:57:13Z malerba89 $
"""

import sys
import os
from Tkinter import *

class GameInputView(Frame):
	
	input_frame = None
	
	def set_input_view(self, inputFrame):
		"""
		Sets the currently displayed view to inputFrame (Tkinter.Frame)
		"""
		self.remove_input_view()
		self.input_frame = inputFrame
#		self.input_frame.grid(in_=self)
		self.input_frame.grid(row=0,ipadx=0,ipady=0,padx=0,pady=0)
		pass
		
	def remove_input_view(self):
		"""
		Removes the currently displayed view
		"""
		if self.input_frame != None:
#			self.input_frame.destroy()
			self.input_frame.grid_remove()
			self.input_frame = None
		pass
